package com.jieyun.rbac.po;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.jieyun.core.constant.Constant;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 组织表
 * @author trek
 *
 */
@SuppressWarnings("serial")
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysDept implements Serializable{
	//id
	private Integer id;
	//部门的名称
	private String name;
	// 父节点的id
	@JsonProperty(value="pid")
	private Integer parentId;
	// 部门的状态
	private Integer status;
	//层级
	private String level;
	//统一层级下的排序
	private Integer seq;
	//备注信息
	private String remark;
	//操作人的名称
	private String operator;
	//操作时间
	@JsonFormat(pattern=Constant.DATE_TIME_FORMAT)
	private Date operateTime;
}
